home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 34 / Amiga Format CD34 (1998-11-20)(Future Publishing)(GB)[!][Christmas issue].iso / -seriously_amiga- / programming / c / mesa-2.6 / src-glu / glup.h < prev    next >
C/C++ Source or Header  |  1998-10-01  |  2KB  |  87 lines

  1. /*
  2.  * Mesa 3-D graphics library
  3.  * Version:  2.4
  4.  * Copyright (C) 1995-1997  Brian Paul
  5.  *
  6.  * This library is free software; you can redistribute it and/or
  7.  * modify it under the terms of the GNU Library General Public
  8.  * License as published by the Free Software Foundation; either
  9.  * version 2 of the License, or (at your option) any later version.
  10.  *
  11.  * This library is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14.  * Library General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU Library General Public
  17.  * License along with this library; if not, write to the Free
  18.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  */
  20.  
  21.  
  22. /*
  23.  * gluP.h
  24.  *
  25.  * Version 1.0  27 Jun 1998
  26.  * by Jarno van der Linden
  27.  * jarno@kcbbs.gen.nz
  28.  *
  29.  * Based on gluP.h ver 1.3
  30.  * Added <m68881.h> for faster math
  31.  *
  32.  */
  33.  
  34.  
  35.  
  36. /*
  37.  * This file allows the GLU code to be compiled either with the Mesa
  38.  * headers or with the real OpenGL headers.
  39.  */
  40.  
  41.  
  42. #ifndef GLUP_H
  43. #define GLUP_H
  44.  
  45.  
  46. #include "GL/gl.h"
  47. #include "GL/glu.h"
  48.  
  49. #include <m68881.h>
  50.  
  51. /* define APIENTRY */
  52. #ifdef __CYGWIN32__
  53. #include <windows.h>
  54. #endif
  55.  
  56. #ifndef __WIN32__
  57. #define APIENTRY
  58. #define CALLBACK
  59. #endif
  60.  
  61.  
  62. #ifndef MESA
  63.    /* If we're using the real OpenGL header files... */
  64. #  define GLU_TESS_ERROR9    100159
  65. #endif
  66.  
  67.  
  68. #define GLU_NO_ERROR        GL_NO_ERROR
  69.  
  70.  
  71. /* for Sun: */
  72. #ifdef SUNOS4
  73. #define MEMCPY( DST, SRC, BYTES) \
  74.     memcpy( (char *) (DST), (char *) (SRC), (int) (BYTES) )
  75. #else
  76. #define MEMCPY( DST, SRC, BYTES) \
  77.     memcpy( (void *) (DST), (void *) (SRC), (size_t) (BYTES) )
  78. #endif
  79.  
  80.  
  81. #ifndef NULL
  82. #  define NULL 0
  83. #endif
  84.  
  85.  
  86. #endif
  87.